package visitor.shape;

// 具体的访问者
public class IntersectionChecker implements Visitor {
    public void visitCircle(Circle circle) {
        System.out.println("Checking intersection with a circle.");
    }


    public void visitRectangle(Rectangle rectangle) {
        System.out.println("Checking intersection with a rectangle.");
    }
}
